<!--
 * @Author: 清羽
 * @Date: 2022-08-18 16:16:52
 * @LastEditTime: 2022-08-18 18:51:31
 * @LastEditors: you name
 * @Description: 删除状态选择
-->
<template>
  <div style="display:inline-block; margin-right: 20px; min-width: 140px;">
    <el-select v-model="selectedDel"
               style="width: 100%;"
               filterable
               placeholder="删除状态选择">
      <el-option v-for="item in del"
                 :key="item.value"
                 :label="item.label"
                 :value="item.value" />
    </el-select>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      default: null
    }
  },
  data () {
    return {
      del: [
        {
          value: 1,
          label: '已删除'
        }, {
          value: 0,
          label: '未删除'
        }
      ]
    }
  },
  computed: {
    selectedDel: {
      get () {
        return this.value
      },
      set (val) {
        this.$emit('input', val)
      }
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
